<template>
   <div :class="{checkList:true,active:isChecked}">
       <img src="~assets/img/cart/tick.svg" alt="">
   </div>
</template>

<script>
  export default {
    name: "CheckedButton",
    props:{
      isChecked:{
        type:Boolean,
         default:false
      }
    },
    methods:{}
  }
</script>

<style scoped>
.checkList{
  width: 30px;
  height: 30px;
   background-color: white;
   border: 2px solid #aaa;
   border-radius: 50%;
}
.checkList img{
  /*背景图片时从边框开始的*/
   width: 90%;
   height: 90%;
}
.active{
  border: red;
  background-color: red;
}
</style>
